package com.easy.dfc.service;

import com.easy.dfc.mapper.FollowstoreMapper;
import com.easy.dfc.entity.FollowStoreList;
import com.easy.dfc.entity.Followstore;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by VULCANTSeries on 2017/5/15.
 */
@Service
public class FollowStoreService {

    @Resource
    private FollowstoreMapper followstoreMapper;

    public int insertSelective(Followstore followstore) {
        return followstoreMapper.insertSelective(followstore);
    }

    public Followstore selectFollow(Followstore followstore) {
        return followstoreMapper.selectFollow(followstore);
    }

    public int deleteByPrimaryKey(int id) {
        return followstoreMapper.deleteByPrimaryKey(id);
    }

    public int deleteByStore(Followstore followstore) {
        return followstoreMapper.deleteByStore(followstore);
    }

    public List<FollowStoreList> selectFollowList(String userId) {
        return followstoreMapper.selectFollowList(userId);
    }

}
